package com.example.test2018131530.mapper;
import com.example.test2018131530.bean.UserBean;
import com.example.test2018131530.bean.UserImgBean;
import org.springframework.stereotype.Component;

import java.util.List;

@Component(value ="userMapper")
public interface UserMapper {
    UserBean getinfo(String name, String password);
    List<UserBean>getAllUser();
    int insertUser(UserBean userBean);
    int deleteUser(String id);
    UserBean getUserById(String id);
    int updateUser(UserBean userBean);
    List<UserBean> selectUser4Page();
    int insertUserImg(UserImgBean userImgBean);
    int getId(UserBean userBean);
    List<UserImgBean> getUserImgsById(String user_id);
}
